import request from '@/utils/request'

export function getSupervisorList(query) {
  return request({
    url: '/supervisor/page',
    method: 'get',
    params: query
  })
}

export function getSubDepartmentList(query) {
  return request({
    url: '/supervisor/getSubDepartmentList',
    method: 'get',
    params: query
  })
}

export function addSupervisor(data) {
  return request({
    url: '/supervisor/addSupervisor',
    method: 'post',
    data
  })
}

export function updateSupervisor(data) {
  return request({
    url: '/supervisor/updateSupervisor',
    method: 'post',
    data
  })
}

export function deleteSupervisor(id) {
  return request({
    url: '/supervisor/delete/' + id,
    method: 'delete'
  })
}

export function selectLabelValue(supervisorid) {
  return request({
    url: '/supervisor/selectLabelValue/' + supervisorid,
    method: 'get'
  })
}
